<template>
    <view class="mask" v-if="wechatBrowser">
        <image mode="widthFix" src="/static/images/live_weixin.png"></image>
    </view>

</template>

<script>
export default {
    data(){
        return {
            wechatBrowser: true,
        }
    },

    onLoad(e){
        let ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger"){
            // 微信浏览器
        }else{
            this.wechatBrowser = false
            window.location.href = atob(e.url)
        }


    }
}
</script>

<style scoped>
    .mask{
        width:100%;
        height:1200px;
        background:#000000;
        position:fixed;
        top:0;
        left:0;
        z-index:10;
        opacity:0.6;
    }

    image{
        z-index: 20;
        width: 650rpx;
        height: 200rpx;
        /*border: 1rpx solid red;*/
        position: fixed;
        top: 120rpx;
        left: 80rpx;
    }
</style>